package dependenceinversion;

public class Test {


    public static void main(String[] args) {
//        Student student = new Student();
//        student.studyJava();
//        student.studyModeling();
//        student.studyPython();

//        Student student = new Student();
//        student.study(new JavaCourse());
//        student.study(new ModelingCurse());

        Student student = new Student(new JavaCourse());
        student.study();
        student.setiCourse(new ModelingCurse());
        student.study();

    }

}
